package com.trust.pams.model.es;

import com.trust.pams.model.Tree.Tree;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.util.List;
import java.util.Map;

@Document(indexName = "es_pams", type = "pams_svn", shards = 1, replicas = 0)
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class SvnEsSearch {
    @Id
    private String id;
    @Field(type= FieldType.Keyword)
    private String projectGuid;
    @Field(type= FieldType.Keyword)
    private String fileName;
    @Field(type= FieldType.Keyword)
    private String path;
    @Field(type= FieldType.Object)
    private List<Tree> children;
}
